<template>
	<view>
		<view class="smart-panel-head">
			<view class="smart-panel-head-title">
				view视图
			</view>
		</view>
		<!-- 主题部分 -->
		<view class="smart-padding-wrap">
			<view>flex-direction:row 横向布局</view>
		</view>
		<view class="smart-flex smart-row">
			<view class="flex-item smart-bg-blue">A</view>
			<view class="flex-item smart-bg-green">B</view>
			<view class="flex-item smart-bg-red">C</view>
		</view>

		<view class="smart-padding-wrap">
			<view>
				flex-direction:row 纵向布局
			</view>
		</view>
		<view class="smart-flex smart-column">
			<view class="flex-item smart-bg-blue">A</view>
			<view class="flex-item smart-bg-green">B</view>
			<view class="flex-item smart-bg-red">C</view>
		</view>

		<view class="smart-padding-wrap">
			<view>flex-direction:row 其他布局</view>
		</view>
		<!-- 纵向布局 -->
		<view class="text"> 纵向布局-自动宽度</view>
		<view class="text" style="width: 300rpx;"> 纵向布局-自动宽度</view>
		<!-- 横向布局 -->
		<view class="smart-flex smart-row">
			<view class="text">横向布局-自动宽度</view>
			<view class="text">横向布局-自动宽度</view>
		</view>
		<view class="smart-flex smart-row" style="justify-content: center;">
			<view class="text">横向布局-居中</view>
			<view class="text">横向布局-居中</view>
		</view>
		<view class="smart-flex smart-row" style="justify-content: flex-end;">
			<view class="text">横向布局-居右</view>
			<view class="text">横向布局-居右</view>
		</view>
		<view class="smart-flex smart-row">
			<view class="text" style="flex:1;">横向布局-平均分布</view>
			<view class="text" style="flex:1;">横向布局-平均分布</view>
		</view>
		<view class="smart-flex smart-row" style="justify-content: space-between;">
			<view class="text">横向布局-两端对齐</view>
			<view class="text">横向布局-两端对齐</view>
		</view>
		<!-- space-around有点像给每个view左右加padding -->
		<view class="smart-flex smart-row" style="justify-content: space-around;">
			<view class="text">横向布局-左右相等</view>
			<view class="text">横向布局-左右相等</view>
		</view>
		<!-- space-evenly就是把剩余空间平分 -->
		<view class="smart-flex smart-row" style="justify-content: space-evenly;">
			<view class="text">横向布局-空隙平分</view>
			<view class="text">横向布局-空隙平分</view>
		</view>
		<view class="smart-flex smart-row">
			<view class="text" style="width: 150rpx;">固定宽度</view>
			<view class="text" style="flex: 1;">自动占满</view>
			<view class="text" style="width: 150rpx;">固定宽度</view>
		</view>
		<view class="smart-flex smart-row" style="flex-wrap:wrap;">
			<view class="text" style="width: 290rpx;">一行显示不全wrap折行</view>
			<view class="text" style="width: 290rpx;">一行显示不全wrap折行</view>
			<view class="text" style="width: 290rpx;">一行显示不全wrap折行</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style>

</style>